@import "src/styles/utils.less";
@import "src/styles/colors.less";
@import "src/styles/icon/index.less";

.ls-good {
  position: relative;

  overflow: hidden;

  box-sizing: border-box;
  width: 375rpx;
  margin: 0;
  padding: 8rpx 16rpx;
  // border: 1rpx solid @border;

  background: @white;
  &__thumb {
    position: relative;

    overflow: hidden;

    width: 284rpx;
    height: 284rpx;
    margin: auto;

    background-size: cover;
  }
  &__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
  }
  &__detail {
    box-sizing: border-box;
    width: auto;
    padding: 8rpx;
    &-row {
      overflow: hidden;

      margin-bottom: 6rpx;

      white-space: nowrap;
      text-overflow: ellipsis;
    }
    &-head {
      color: @title;

      .font-size(28rpx);
    }
    &-desc {
      color: @secondary-text;

      .font-size(24rpx);
    }
  }
  &__price {
    margin-right: 8rpx;

    color: @red-7;

    .font-size(32rpx);
    &::before {
      content: "¥ ";

      .font-size(28rpx);
    }
    &_disable {
      height: 40rpx;

      vertical-align: text-bottom;
      text-decoration: line-through;

      color: @disable;

      .font-size(24rpx);
      &::before {
        content: "¥ ";

        .font-size(20rpx);
      }
    }
  }
}
